from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import CSRFProtect
from redis import StrictRedis


class Config(object):
    SQLALCHEMY_DATABASE_URI = "mysql://root:mysql@127.0.0.1:3306/information68"
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    REDIS_HOST="127.0.0.1"
    REDIS_PORT=6379

app=Flask(__name__)

app.config.from_object(Config)

db=SQLAlchemy(app)

redis_store = StrictRedis(host=Config.REDIS_HOST,port=Config.REDIS_PORT)

CSRFProtect(app)


@app.route('/index')
def index():
    return '123123'




if __name__ == '__main__':
    app.run(debug=True
            )